<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"D:\phpStudy\WWW\thinkphp5\public/../app1/index\view\test\postdetail.html";i:1488435377;}*/ ?>
<div>
	<form action="/index/test/postdetail" method="post">
		id: <input name="id" value="<?php echo $id; ?>" />
		<input type="submit" value="搜索">
	</form>
	<table border="1" style="border-collapse: collapse;">
		<tr>

			<th>title</th>
			<th>content</th>
			<th>user_id</th>
			<th>create_time</th>
			<th>pid</th>
			<th>操作</th>
		</tr>
		<?php if(is_array($list) || $list instanceof \think\Collection): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$post): $mod = ($i % 2 );++$i;?>
		<tr>
			<form action="<?php echo url('/index/test/postedit'); ?>" method="post">
				<input type='hidden' name='id' value=<?php echo $post['id']; ?>>
				<td><input type='text' name='title' value=<?php echo $post['title']; ?>></td>
				<td><input type='text' name='content' value=<?php echo $post['content']; ?>></td>
				<td><input type='text' name='user_id' value=<?php echo $post['user_id']; ?>></td>
				<td><input type='text' name='create_time'
					value=<?php echo $post['create_time']; ?>></td>
				<td><input type='text' name='pid' value=<?php echo $post['pid']; ?>></td>
				<td><input type='submit' value='修改信息'><a
					href="<?php echo url('/index/test/postdelete'); ?>?id=<?php echo $post['id']; ?>"><input
						type='button' value="删除操作"></a></td>
			</form>
		</tr>
		<?php endforeach; endif; else: echo "" ;endif; ?>
	</table>
	<form action="<?php echo url('index/test/postreply'); ?>" method="post">
		<input type="hidden" name='id' value='<?php echo $id; ?>'> <input
			type='text' name='content' value='回帖内容'><input type='submit'
			value='回帖'>
	</form>
</div>
<?php echo $page; ?>

